package one;
/**
 * @Author:DarknessShadow
 * @description:主测试程序
 * @date 2020/5/12 9:32
 */
public class Main {
    public static void main(String[] args) {
        System.out.println("start.....");
        Singleton singleton = Singleton.getInstance();
        Singleton singleton1 = Singleton.getInstance();
        if (singleton == singleton1) {
            System.out.println("两个对象相等，是同一个实例对象");
        } else {
            System.out.println("两个对象不相等，不是同一个实例对象");
        }
    }
}
